<?php
namespace App\Models;


/**
 * Model Classs
 *
 * @property int $id
 * @property int $school_id
 * @property int $campus_id
 * @property string $class_name
 * @property int $class_type
 * @property int $capacity
 * @property string $remark
 * @property int $status
 * @property string $created_at
 * @property string $updated_at
 * @property string $deleted_at
 *
 * @method static \Illuminate\Database\Query\Builder | \App\Models\Classs where($column, $operator = null, $value = null, $boolean = 'and')
 * @method static \Illuminate\Database\Query\Builder | \App\Models\Classs whereIn($column, $values, $boolean = 'and', $not = false)
 * @method static \Illuminate\Database\Query\Builder | \App\Models\Classs leftJoin($table, $first, $operator = null, $second = null)
 * @method static \Illuminate\Database\Query\Builder | \App\Models\Classs rightJoin($table, $first, $operator = null, $second = null)
 * @method static \Illuminate\Database\Query\Builder | \App\Models\Classs get($columns = ['*'])
 * @method static \Illuminate\Database\Query\Builder | \App\Models\Classs paginate($perPage = 15, $columns = ['*'], $pageName = 'page', $page = null)
 * @method static \Illuminate\Database\Query\Builder | \App\Models\Classs find($id, $columns = ['*'])
 * @method static \Illuminate\Database\Query\Builder | \App\Models\Classs first($columns = ['*'])
 * @method static \Illuminate\Database\Query\Builder | \App\Models\Classs select($columns = ['*'])
 * @method static \Illuminate\Database\Query\Builder | \App\Models\Classs orderBy($column, $direction = 'asc')
 * @package App\Model
 */
class Classs extends BaseModel
{
    protected $table = 'classs';

    protected $fillable = [
        "class_name", 'class_type', 'capacity', 'remark', 'status', 'school_id', 'campus_id'
    ];

    public function students(){
        return $this->hasMany(Student::class);
    }
}
